package com.itheima.zuoye;

public class Student1 extends schoolPersonnel{
//    分数
    double score;
//    考试方法，显示基本信息showMsg方法
    public void showMsg() {
        System.out.println("姓名：" + name + "年龄：" + age + "分数：" + score);
    }
    public void exam() {
        System.out.println(name + "正在考试");

    }
    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }
}

